]> dgit.raspbian.org Git - gnome-shell.git/commit
workspace: Refactor layout scale and space calculation
authorJonas Dreßler <verdre@v0yd.nl>
Mon, 1 Feb 2021 10:36:10 +0000 (11:36 +0100)
committerMarge Bot <marge-bot@gnome.org>
Mon, 1 Feb 2021 13:12:43 +0000 (13:12 +0000)
commit39e844ac0c709489cdc24c749627c7ac3ec8727f
tree73c68dae38d54a90a7b7148566c890c229b499a6
parent8d9a92fe98b27a45070ec61ba83375f7cf1ea442
workspace: Refactor layout scale and space calculation

Make computeScaleAndSpace() return an array including scale and space so
we no longer have to access the layout object from outside.

With this we also no longer need to set layout.space, since only the
scale property is needed in computeWindowSlots().

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1617>
js/ui/workspace.js